import axios from './http';

export default {
    surePay(params) {
    const url = '/order/confirm?orderId='+params;
    return new Promise((resolve, reject) => {
      axios.post(url, params).then(resp => {
        resolve(resp)
      });
    });
  },
  get(params) {
    const url = '/order/confirm?dossierId='+params;
    return new Promise((resolve, reject) => {
        axios.get(url).then(data => {
            // return data
            resolve(data)
            // console.log(data)
        });
    })
    // return new Promise((resolve, reject) => {
    //     axios.post(url, params).then(resp => {
    //       resolve(resp)
    //     });
    //   });
  }

};